<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of customer_model
 *
 * @author user
 */
class Customer_model extends Model{
    //put your code here
    function Customer_model(){
        parent::Model();
        $this->load->library('db_customer');
    }

    function retr_customer_list(){
        

        $res = $this->db_customer->retr_list();

        return $res;
    }

    function insert($nama, $nohp){
        $this->db_customer->insert($nama, $nohp);
   }
    function  update($id,$no_hp,$nama){
        $this->db_customer->update($id,$no_hp,$nama);
    }
    function  retr_id($id){
        $result =$this->db_customer->retr_id($id);
        return $result;
    }
}
?>
